package org.br.erp.project.project.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.UnsupportedEncodingException;

/**
 * @Description: 项目费用分录
 * @Author: jeecg-boot
 * @Date:   2024-05-08
 * @Version: V1.0
 */
@ApiModel(value="projectexpense对象", description="项目费用分录")
@Data
@TableName("projectexpense")
@Entity
public class Projectexpense implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    @Id
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**parentid*/
    @ApiModelProperty(value = "parentid")
    private java.lang.String parentid;
	/**费用类型*/
	@Excel(name = "费用类型", width = 15)
    @ApiModelProperty(value = "费用类型")
    private java.lang.String expensetype;
	/**项目*/
	@Excel(name = "项目", width = 15)
    @ApiModelProperty(value = "项目")
    private java.lang.String projectid;
	/**费用日期*/
	@Excel(name = "费用日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "费用日期")
    private java.util.Date expensedate;
	/**费用含税金额*/
	@Excel(name = "费用含税金额", width = 15)
    @ApiModelProperty(value = "费用含税金额")
    private java.math.BigDecimal totaltaxinvalue;
	/**费用不含税金额*/
	@Excel(name = "费用不含税金额", width = 15)
    @ApiModelProperty(value = "费用不含税金额")
    private java.math.BigDecimal totaltaxexvalue;
	/**税额*/
	@Excel(name = "税额", width = 15)
    @ApiModelProperty(value = "税额")
    private java.math.BigDecimal tax;
	/**币种*/
	@Excel(name = "币种", width = 15)
    @ApiModelProperty(value = "币种")
    @Dict(dictTable = "currency",dicCode = "id",dicText = "currencyname")
    private java.lang.String currencyid;

    @Column(length = 32)
    @Dict(dictTable = "sys_user",dicText = "realname",dicCode = "id")
    private String assigntoid;
}
